﻿using Abp.Application.Services.Dto;
using FwProject.Car.Dto;
using FwProject.Comm.ExcelUtil;
using FwProject.Core.Restaurant;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;

namespace FwProject.Restaurant.Dto
{
    [DisplayName(displayName:"餐厅表")]
    public class RestaurantOutputDto:EntityDto<Guid>
    {
        /// <summary>
        /// 餐厅名称
        /// </summary>
        [ExcelDateMember(IsMultiRow = false, IsMerged = false)]
        [DisplayName(displayName: "餐厅名称")]
        public string RestaurantName { get; set; }

        /// <summary>
        /// 餐厅地址
        /// </summary>
        [ExcelDateMember(IsMultiRow = false, IsMerged = false)]
        [DisplayName(displayName: "餐厅地址")]
        public string RestaurantAddress { get; set; }


        [ExcelDateMember(IsMultiRow = false, IsMerged = false)]
        [DisplayName(displayName: "注册时间")]
        public DateTime CreationTime { get; set; }
        /// <summary>
        /// 餐厅联系人
        /// </summary>
        [ExcelDateMember(IsMultiRow = false, IsMerged = false)]
        [DisplayName(displayName: "餐厅联系人")]
        public string RestaurantContact { get; set; }

        /// <summary>
        /// 餐厅联系电话
        /// </summary>
        [ExcelDateMember(IsMultiRow = false, IsMerged = false)]
        [DisplayName(displayName: "联系电话")]
        public string Mobile { get; set; }


     
        ///// <summary>
        ///// 餐厅联系人
        ///// </summary>
        //[ExcelDateMember(IsMultiRow = true, IsMerged = false, ListOne = true)]
        //[DisplayName(displayName: "餐厅联系人")]
        //public IEnumerable<string> RestaurantContact { get; set; }

        ///// <summary>
        ///// 餐厅联系电话
        ///// </summary>
        //[ExcelDateMember(IsMultiRow = true, IsMerged = false, ListOne = true)]
        //[DisplayName(displayName: "联系电话")]
        //public IEnumerable<string> RestaurantPhone { get; set; }

        /// <summary>
        /// 收费方式
        /// </summary>
        public ChargeWayEnum ChargeWay { get; set; }

        /// <summary>
        /// 结算方式
        /// </summary>
        public BalanceWayEnum BalanceWay { get; set; }

        /// <summary>
        /// 结算周期
        /// </summary>
        public BalanceCycleEnum BalanceCycle { get; set; }

        public long DriverId { get; set; }
        public CarDriverUser EmployeeDriver { set {
                DriverName = value.Name;
                DriverId = value.Id;
            } }
        /// <summary>
        /// 司机名称
        /// </summary>
        [ExcelDateMember(IsMultiRow = false, IsMerged = false)]
        [DisplayName(displayName: "配送司机")]
        public string DriverName { get; set; }

        /// <summary>
        /// 是否停用
        /// </summary>
        [ExcelDateMember(IsMultiRow = false, IsMerged = false)]
        [DisplayName(displayName: "是否停用")]
        public bool IsDiscontinuation { get; set; }

        [ExcelDateMember(IsMultiRow = false, IsMerged = false)]
        [DisplayName(displayName: "停用时间")]
        public DateTime? DiscontinuationTime { get; set; }

        /// <summary>
        /// 收取押金
        /// </summary>
        [ExcelDateMember(IsMultiRow = false, IsMerged = false)]
        [DisplayName(displayName: "押金")]
        public decimal Deposit { get; set; }

        /// <summary>
        /// 押金收取日期
        /// </summary>
        [ExcelDateMember(IsMultiRow = false, IsMerged = false)]
        [DisplayName(displayName: "押金收取日期")]
        public DateTime? DepositDate { get; set; }

        public int Stock { get; set; }
    }


}
